package com.salelogistics.sale.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.salelogistics.common.core.annotation.Excel;
import com.salelogistics.common.core.web.domain.BaseEntity;

/**
 * 批次计划的详细材料信息对象 sms_batch_plan_details
 * 
 * @author Hu Kangying
 * @date 2023-07-27
 */
public class SmsBatchPlanDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 批次计划ID */
    @Excel(name = "批次计划ID")
    private String batchId;

    /** 材料ID */
    @Excel(name = "材料ID")
    private Long materialId;

    /** 计划数量 */
    @Excel(name = "计划数量")
    private BigDecimal planQuantity;

    /** 已做批次数 */
    @Excel(name = "已做批次数")
    private BigDecimal batched;

    /** 拆分数量 */
    @Excel(name = "拆分数量")
    private BigDecimal splitQuantity;

    /** 修改人 */
    @Excel(name = "修改人")
    private Long editedBy;

    /** 最近一次修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近一次修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date editedTime;

    /** 删除状态 */
    @Excel(name = "删除状态")
    private Long isDeleted;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBatchId(String batchId)
    {
        this.batchId = batchId;
    }

    public String getBatchId()
    {
        return batchId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setPlanQuantity(BigDecimal planQuantity) 
    {
        this.planQuantity = planQuantity;
    }

    public BigDecimal getPlanQuantity() 
    {
        return planQuantity;
    }
    public void setBatched(BigDecimal batched) 
    {
        this.batched = batched;
    }

    public BigDecimal getBatched() 
    {
        return batched;
    }
    public void setSplitQuantity(BigDecimal splitQuantity) 
    {
        this.splitQuantity = splitQuantity;
    }

    public BigDecimal getSplitQuantity() 
    {
        return splitQuantity;
    }
    public void setEditedBy(Long editedBy) 
    {
        this.editedBy = editedBy;
    }

    public Long getEditedBy() 
    {
        return editedBy;
    }
    public void setEditedTime(Date editedTime) 
    {
        this.editedTime = editedTime;
    }

    public Date getEditedTime() 
    {
        return editedTime;
    }
    public void setIsDeleted(Long isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted() 
    {
        return isDeleted;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("batchId", getBatchId())
            .append("materialId", getMaterialId())
            .append("planQuantity", getPlanQuantity())
            .append("batched", getBatched())
            .append("splitQuantity", getSplitQuantity())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("editedBy", getEditedBy())
            .append("editedTime", getEditedTime())
            .append("isDeleted", getIsDeleted())
            .append("note", getNote())
            .toString();
    }
}
